<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>公告发布</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-row">
            <form class="layui-form">
                <div class="layui-form-item">
                    <label for="nTitle" class="layui-form-label">
                        <span class="x-red">*</span>公告标题
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="nTitle" name="nTitle" required="" lay-verify="required"
                               autocomplete="off" class="layui-input">
                    </div>

                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" for="nContent">
                        <span class="x-red">*</span>公告内容
                    </label>
                    <div class="layui-input-inline">
                        <textarea placeholder="请在此处输入公告内容" name="content" id="nContent"></textarea>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label" for="nTarget">
                        接收方
                    </label>
                    <div class="layui-input-inline">
                        <input type="number" id="nTarget" name="nTarget" autocomplete="off"
                               class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                    <label for="nGrade" class="layui-form-label">
                        重要等级
                    </label>
                    <div class="layui-input-inline">
                        <input type="number" id="nGrade" name="nGrade" autocomplete="off"
                               class="layui-input">
                    </div>

                </div>
                <div class="layui-form-item">
                    <label  class="layui-form-label" for="nCategory">
                        公告种类
                    </label>
                    <div class="layui-input-inline" name="nCategory">
                        <input type="text" id="nCategory" name="nCategory" autocomplete="off"
                               class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                    <label for="nTag" class="layui-form-label">
                        关键词
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="nTag" name="nTag" autocomplete="off" class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label"></label>
                    <button id="L_repass" class="layui-btn" lay-filter="add" lay-submit="" type="button">
                        增加
                    </button>
                </div>
        </form>
    </div>
</div>
</div>
<script type="text/javascript" src="js/common/DataModify.js"></script>
<script type="text/javascript" src="./js/common/ajaxUse.js"></script>
<script>layui.use(['form', 'layer'],
    function() {
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer;

        //监听提交
        form.on('submit(add)',
            function() {
                submitModify('/Notice/addNotice', getAdd(0));
            })
    });
</script>

</body>
</html>
